package zjy.android.codeedittext;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Path;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ((CodeEditText) findViewById(R.id.code)).setOnEditorActionListener((v, actionId, event) -> {
            if (event == null) {
                Log.e("TAG", "onCreate: " + actionId + "/" + ((CodeEditText) v).getText().toString());
                return true;
            }
            return false;
        });

        Path path = new Path();
        path.addCircle(0, 0, 10, Path.Direction.CCW);
    }
}